package com.pason.onlineshop.mainshop.service.entity.query.impl;

import java.util.List;

public class QueryParameter {

	public enum QueryOperateType {
		Equal, CharIn
	}

	private String parameterName;
	private Object parameterValue;
	private QueryOperateType parameterType;

	public QueryParameter() {

	}

	public QueryParameter(String parameterName, Object parameterValue,
			QueryOperateType parameterType) {
		this.parameterName = parameterName;
		this.parameterValue = parameterValue;
		this.parameterType = parameterType;
	}

	public String getParameterName() {
		return parameterName;
	}

	public QueryOperateType getParameterType() {
		return parameterType;
	}

	public Object getParameterValue() {
		return parameterValue;
	}

	public void setParameterName(String parameterName) {
		this.parameterName = parameterName;
	}

	public void setParameterType(QueryOperateType parameterType) {
		this.parameterType = parameterType;
	}

	public void setParameterValue(Object parameterValue) {
		this.parameterValue = parameterValue;
	}
	
	public boolean isPrameterValueIsList() {
		return null != parameterValue && parameterValue instanceof List;
	}
}
